	
		<script>
$(document).ready(function(){  

     		
		$("#element_3").change(function(){
            if($(this).val()!=""){
                var dato1=$(this).val();
			
			
				$("#ajax-content").empty().append("<div id='loading'><img src='<?php echo base_url(); ?>source/image/spinner5.gif' style='display:none;' alt='Cargando' id='imgtema1'/></div>");
                $.ajax({
                    type:"POST",
                    dataType:"html",
                    url: "<?php echo base_url(); ?>site/carga_instancia",
                    data:"codejs="+dato1,
                    success:function(msg){
                         $("#ajax-content").empty().append(msg);
							
                    }
                });
            }else{
                $("#ajax-content").empty().append("");
            }  
        });
		

    
	
	});
	
</script>
		
		
		<div>
			<h2>instancia instrumento</h2>
			<p>Modificar una instancia</p>
		</div>						
		
		
		<?php 
		$attributes = array('id' => 'myform', 'class' => 'validar_form', 'name' => 'myform');
		echo form_open('site/modificar_ii',$attributes); ?>
		
				<label class="description">Nombre Instrumento: </label>
				<div align='left' style="position:relative; left:150px;">
					<select class="element select small" id="element_3" name="element_3"> 
						<option value="-1">SELECCIONAR</option>
					<?php
    foreach($instancias as $i => $dato)
    {
        echo '<option value="'.$dato['id_instancia'].'">';
        echo $dato['nombre'];
        echo '</option>';
    }
?>
</select></div>

	
<div id="ajax-content">This is default text, which will be replaced</div>

	
    
	<?php 
		echo form_submit('mysubmit', 'Modificar'); 
		echo form_reset('myreset', 'Reestablecer');
		echo form_close(); 
	?>
	
	
	<script type="text/javascript">

		var element_4 = new LiveValidation( "element_4", { validMessage: "Correcto", onlyOnSubmit: true } );
		element_4.add( Validate.Presence,{ failureMessage: "Incorrecto" } );	
		
		var element_1_1 = new LiveValidation( "element_1_1", { validMessage: " ", onlyOnSubmit: true } );
		element_1_1.add( Validate.Presence,{ failureMessage: " " } );	
		
		var element_1_2 = new LiveValidation( "element_1_2", { validMessage: " ", onlyOnSubmit: true } );
		element_1_2.add( Validate.Presence,{ failureMessage: " " } );	
		
		var element_1_3 = new LiveValidation( "element_1_3", { validMessage: " ", onlyOnSubmit: true } );
		element_1_3.add( Validate.Presence,{ failureMessage: " " } );	

		var element_2_1 = new LiveValidation( "element_2_1", { validMessage: " ", onlyOnSubmit: true } );
		element_2_1.add( Validate.Presence,{ failureMessage: " " } );	
		
		var element_2_2 = new LiveValidation( "element_2_2", { validMessage: " ", onlyOnSubmit: true } );
		element_2_2.add( Validate.Presence,{ failureMessage: " " } );	
		
		var element_2_3 = new LiveValidation( "element_2_3", { validMessage: " ", onlyOnSubmit: true } );
		element_2_3.add( Validate.Presence,{ failureMessage: " " } );		
		
		var element_5 = new LiveValidation('element_5', { validMessage: "Correcto", onlyOnSubmit: true });
		element_5.add( Validate.Presence,{ failureMessage: "Incorrecto" } );
	</script>
		
					
		
					
		
		
		
		